go/parser.parser.error (method)

33 uses

	go/parser (current package)
		parser.go#L115: 		p.error(p.pos, "exceeded max nesting depth")
		parser.go#L260: func (p *parser) error(pos token.Pos, msg string) {
		parser.go#L298: 	p.error(pos, msg)
		parser.go#L326: 		p.error(p.pos, "missing ',' before newline in "+context)
		parser.go#L369: 		p.error(p.pos, msg+" in "+context)
		parser.go#L593: 		p.error(p.pos, "unexpected comma; expecting ]")
		parser.go#L638: 				p.error(trailingComma, "unexpected comma; expecting ]")
		parser.go#L690: 			p.error(p.pos, "cannot parenthesize embedded type")
		parser.go#L704: 		p.error(p.pos, "cannot parenthesize embedded type")
		parser.go#L956: 			p.error(errPos, msg)
		parser.go#L1005: 			p.error(errPos, msg)
		parser.go#L1059: 			p.error(tparams.Closing, "empty type parameter list")
		parser.go#L1105: 		p.error(tparams.Pos(), "function type must have no type parameters")
		parser.go#L1137: 				p.error(lbrack, "interface method must have no type parameters")
		parser.go#L1590: 				p.error(colons[0], "middle index required in 3-index slice")
		parser.go#L1594: 				p.error(colons[1], "final index required in 3-index slice")
		parser.go#L1762: 				p.error(t.Pos(), "cannot parenthesize type in composite literal")
		parser.go#L1963: 		p.error(colon, "illegal label declaration")
		parser.go#L1987: 		p.error(x.Pos(), fmt.Sprintf("expression in %s must not be parenthesized", callType))
		parser.go#L1995: 		p.error(p.safePos(x.End()), fmt.Sprintf("expression in %s must be function call", callType))
		parser.go#L2072: 	p.error(s.Pos(), fmt.Sprintf("expected %s, found %s (missing parentheses around composite literal?)", want, found))
		parser.go#L2081: 		p.error(p.pos, "missing condition in if statement")
		parser.go#L2094: 			p.error(p.pos, "var declaration not allowed in if initializer")
		parser.go#L2124: 			p.error(semi.pos, "unexpected newline, expecting { after if clause")
		parser.go#L2126: 			p.error(semi.pos, "missing condition in if statement")
		parser.go#L2207: 				p.error(t.TokPos, "expected ':=', found '='")
		parser.go#L2509: 		p.error(pos, "import path must be a string")
		parser.go#L2512: 		p.error(pos, "missing import path")
		parser.go#L2783: 		p.error(tparams.Opening, "method must have no type parameters")
		parser.go#L2797: 			p.error(p.pos, "unexpected semicolon or newline before {")
		parser.go#L2870: 		p.error(p.pos, "invalid package name _")
		parser.go#L2893: 					p.error(p.pos, "imports must appear before other declarations")
		parser.go#L2914: 		declErr = p.error